package com.zjddtech.testweb;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
public class HelloController {

    @RequestMapping(value = "")
    public String index(@RequestParam String name, ModelMap model) {
        model.addAttribute("name", name);
        return "index";
    }
}
